package demo.pattern.adapter;

/**
 * @author : GuoFei
 * @since : 2019/6/25 16:50
 */
public class TV implements TwoElectricOutlet {

    String name;

    public TV(String name) {
        this.name = name+"电视机";
    }

    @Override
    public void connectElectricCurrent() {
        turnOn();
    }

    public void turnOn() {
        System.out.println(name + "开始播放节目");
    }

}
